package com.flowplan.ai.service;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * AI文档生成结果
 * 
 * @author FlowPlan Team
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AiDocumentResult {
    
    private boolean success;
    private String message;
    private String title;
    private String content;
    private String format;
    private boolean enabled;
    
    public static AiDocumentResult success(String title, String content, String format) {
        return AiDocumentResult.builder()
                .success(true)
                .enabled(true)
                .title(title)
                .content(content)
                .format(format)
                .message("文档生成成功")
                .build();
    }
    
    public static AiDocumentResult failure(String message) {
        return AiDocumentResult.builder()
                .success(false)
                .enabled(true)
                .message(message)
                .build();
    }
    
    public static AiDocumentResult disabled(String message) {
        return AiDocumentResult.builder()
                .success(false)
                .enabled(false)
                .message(message)
                .build();
    }
}